import { map, isObject } from 'lodash'

export const getIntegrationCodes = (integrations = []) => {
  return map(integrations, (item) => {
    if (isObject(item)) {
      return item.code
    }
    return item
  }).join()
}
